package com.welse.modulebiz.domain.dto;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Login {

    private String userId;
    @NotEmpty(message = "用户密码不能为空")
    @Length(min = 6,max = 18,message="密码必须是6-18位")
    private String password;
}

